using System;
using System.Collections.Generic;
using System.Text;

namespace SubSonic
{
    [Serializable]
    public class ValidationError : System.Object
    {
        private string _controlID;
        private string _ID;
        private string _message;

        public string ControlID
        {
            get { return this._controlID; }
            set { this._controlID = value; }
        }

        public string ID
        {
            get { return this._ID; }
            set { this._ID = value; }
        }

        public string Message
        {
            get { return this._message; }
            set { this._message = value; }
        }

        public ValidationError() : base()
        {
            this._controlID = String.Empty;
            this._ID = String.Empty;
            this._message = String.Empty;
        }

        public ValidationError(string message) : this()
        {
            this.Message = message;
        }

        public ValidationError(string message, string controlID)
            : this(message)
        {
            this.ControlID = controlID;
        }

        public ValidationError(string message, string controlID, string id)
            : this(message, controlID)
        {
            this.ID = id;
        }
        
    }
}
